<?php
class InfocategoryAction extends IntesysAction{
	function _initialize(){
        parent::_initialize();
		
		$this->dao = D('Infocategory');// 编辑、删除操作需要
    }
	//分类管理列表
    public function index(){
		$this->listmap = 'site_id = '.__SITEID__.' and member_id = '. $this->memberInfo['id'];
		
		
		
		
		$this->pagesize = 20;
		parent::_list();
		$this->display();
	}
	
	public function getcategory(){
		$this->list = $this -> dao -> where(array('site_id' => __SITEID__, 'member_id' => $this->memberInfo['id'])) -> order('id desc') -> select();
		$this->display();
	}
	
	public function insert(){
		$_POST['member_id'] = $this->memberInfo['id'];
		$_POST['site_id'] = __SITEID__;
		parent::insert();
	}
	
}

